package cn.DesignModel.abstractMethod;

import cn.DesignModel.factoryMethod.CheesePizza;
import cn.DesignModel.factoryMethod.DurianPizza;
import cn.DesignModel.factoryMethod.Pizza;

/**
 * @author: lizemin
 * @version: 1.0
 */
public class AFactory implements AbstractFactory {

    @Override
    public Pizza createCheese() {
        System.out.println("A工厂制造的奶酪披萨");
        return new CheesePizza();
    }

    @Override
    public Pizza createDurian() {
        System.out.println("A工厂制造的榴莲披萨");
        return new DurianPizza();
    }

}
